package services

import (
	"WORKSPACE/dao"
	"WORKSPACE/models"
)

func GetAllwdata() (error, []models.Wdata,int64) {
	err, wdata, total := dao.GetAllwdata()
	return err, wdata, total
}


func Delwdata(eno string,wdata string) error {
	err := dao.Delwdata(eno,wdata)
	return err
}

func Updatewdata(wdata models.Wdata) error{
	err:= dao.Updatewdata(wdata)
	return err
}

func Addwdata(wdata models.Wdata) (error) {
	err := dao.Addwdata(wdata)
	return err
}
